import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/user/manage'
  },
  // 用户管理
  {
    path: '/user/manage',
    component: () => import('../views/UserManage.vue')
  },
  // 购物车
  {
    path: '/shop/cart',
    component: () => import('../views/ShopCart.vue')
  },
  // x选项卡
  {
    path: '/tab',
    component: () => import('../views/Tab.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router
